package com.sharecar.server.event;

import com.sharecar.server.Request;
import com.sharecar.server.Response;

/**
 * <p>Title: 事件适配器</p>
 * @author xinyan
 */

public abstract class EventAdapter implements ServerListener {
	public EventAdapter() {
	}

	@Override
	public void onError(String error) {
	}

	@Override
	public void onAccept() throws Exception {
	}

	@Override
	public void onAccepted(Request request) throws Exception {
	}

	@Override
	public void onRead(Request request) throws Exception {
	}

	@Override
	public void onWrite(Request request, Response response) throws Exception {
	}

	@Override
	public void onClosed(Request request) throws Exception {
	}
}
